import Vue from 'vue'
import VueRouter from 'vue-router'
import RecommendView from '@/views/RecommendView'

Vue.use(VueRouter)

const routes = [
  {
    path:"",
    name:"recommend",
    component:RecommendView
  },
  {
    path:"/hot",
    name:"hot",
    component:() => import('@/views/HotView')
  },
  {
    path:"/songlist/:listid",
    name:"songlist",
    props:true,
    component:() => import('@/views/SongList'),
    meta:{
      hideNav:true
    }
  },
  {
    path:"/search",
    name:"search",
    component:() => import('@/views/SearchView')
  },
  {
    path:"/Singer/:singerid",
    name:"SingerInformation",
    props:true,
    component:() => import('@/views/SingerInformationView'),
    meta:{
      hideNav:true
    }
  },
  {
    path:"/mv/:id",
    name:"MvView",
    props:true,
    component:() => import('@/views/MvView'),
    meta:{
      hideNav:true
    }
  }
  
]

const router = new VueRouter({
  routes
})

export default router
